package juc;

/**
 * @author liwuji
 * @date 2024/1/22
 * @desc
 **/
public enum DemoEnum {
    demo("first",1),
    demo1("第二",2)
    ;

    private String name;
    private int age;

    DemoEnum(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public static void main(String[] args) {
        DemoEnum[] values = DemoEnum.values();
        for (DemoEnum d :
                values) {
            System.out.println(d);
            
        }
    }
}
